gslLibPath = /opt/local/lib/
CELLPATH = CellSystem/
IBMPATH = IBMSystem/

Pest: PestExterm.cpp IBM Cell Renderer
	g++ -framework GLUT -framework OpenGL $(CELLPATH)CellularAutomation.o $(IBMPATH)IBMController.o $(CELLPATH)Creature.o $(CELLPATH)Cell.o $(IBMPATH)Brain.o $(IBMPATH)Vec.o $(IBMPATH)Virus.o $(IBMPATH)Quadtree.o PestExterm.cpp -o Pest -I/opt/local/include $(gslLibPath)libgsl.a 

Renderer: Renderer.cpp IBM Cell
	g++ -c Renderer.cpp -I/opt/local/include

IBM:
	cd $(IBMPATH) && make IBMController

Cell: 
	cd $(CELLPATH) && make CellularAutomation

clean:
	rm -f *.o Pest $(IBMPath)*.o $(CellPath)*.o